package com.hup.winHolderService.model.action;

import com.hup.winHolderService.constant.MouseButton;
import lombok.Data;

import java.awt.event.KeyEvent;

/**
 * @author hugan
 * @date 2023/10/10
 */
@Data
public class ButtonActionReq {
    public static final int ACTION_PRESS = 1;
    public static final int ACTION_UP = 2;
    public static final int ACTION_CLICK = 3;

    public static final int TYPE_KEYBOARD = 1;
    public static final int TYPE_MOUSE = 2;

    public static final String SPECIAL_KEY_PREFIX = "SPECIAL:";

    private Integer action;
    private Integer type;

    /**
     * 以","分割
     * .{@link KeyEvent}
     * .{@link MouseButton#button}
     * .特殊键盘按键,使用jni工具触发事件, 以 {@link #SPECIAL_KEY_PREFIX}开头, 格式"SPECIAL:0xB3,0xAA"
     */
    private String keyCode;

}
